package org.helgoboss.scala_additions

import java.io.{File, InputStream}

object Implicits extends Implicits

trait Implicits {
    implicit def runtimeToRichRuntime(runtime: Runtime) = new RichRuntime(runtime)
    implicit def processToRichProcess(process: Process) = new RichProcess(process)
    implicit def inputStreamToRichInputStream(inputStream: InputStream) = new RichInputStream(inputStream)
    implicit def fileToRichFile(file: File) = new RichFile(file)
    implicit def stringToCamelCaseString(s: String) = new CamelCaseString(s)
    implicit def stringIterableToCamelCaseComponents(i: Iterable[String]) = new CamelCaseComponents(i)
    implicit def nodeIteratorToRichNodeIterator(original: Iterator[FileTreeIterator.Node]) = new RichNodeIterator(original)
    implicit def mapToNestedMap[K](m: Map[K, Any]) = new NestedMap(m)
}
